package com.hbnu.ysc.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Insurance {
    public String name;
    public Double price;
    public String type;
    public String buyName;
    public String targetName;
    public LocalDateTime createTime;
    public Double compensation;

    public String toString() {
        return "Insurance{" +
                "保险名称='" + name + '\'' +
                ", 价格='" + price + '\'' +
                ", 类型='" + type + '\'' +
                ", 购买人='" + buyName + '\'' +
                ", 目标人='" + targetName + '\'' +
                ", 购买时间=" + createTime +
                ", 赔偿金额=" + compensation +
                '}' + "\n";
    }
}
